package model;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;

@Table(name = "t_dict_child")
public class T_dict_child extends ActiveRecordBase {
	@Id
	private String c_seq;
	@Column
	private String c_code;
	@Column
	private String c_name;
	@Column
	private String p_code;
	@Column
	private String attr;
	@Column
	private String is_active;
	public String getC_seq() {
		return c_seq;
	}
	public void setC_seq(String c_seq) {
		this.c_seq = c_seq;
	}
	public String getC_code() {
		return c_code;
	}
	public void setC_code(String c_code) {
		this.c_code = c_code;
	}
	public String getC_name() {
		return c_name;
	}
	public void setC_name(String c_name) {
		this.c_name = c_name;
	}
	public String getP_code() {
		return p_code;
	}
	public void setP_code(String p_code) {
		this.p_code = p_code;
	}
	public String getAttr() {
		return attr;
	}
	public void setAttr(String attr) {
		this.attr = attr;
	}
	public String getIs_active() {
		return is_active;
	}
	
	public String getIs_activeDesc() {
		if(is_active != null){
			if("0".equals(is_active)){
				return "有效";
			}else{
				return "无效";
			}
		}
		return is_active;
	}
	
	public void setIs_active(String is_active) {
		this.is_active = is_active;
	}
	
}
